[][src]Crate secp256k1

Pure Rust implementation of the secp256k1 curve and fast ECDSA signatures. The secp256k1 curve is used excusively in Bitcoin and Ethereum alike cryptocurrencies.

Modules

curve

Curve related structs.

util

Utilities to manipulate the secp256k1 curve parameters.

Macros

affine_const

Define an affine group element constant.

affine_storage_const

Define an affine group storage constant.

jacobian_const

Define a jacobian group element constant.

Structs

Message

Hashed message input to an ECDSA signature.

PublicKey

Public key on a secp256k1 curve.

RecoveryId

Tag used for public key recovery from signatures.

SecretKey

Secret key (256-bit) on a secp256k1 curve.

SharedSecret

Shared secret using ECDH.

Signature

An ECDSA signature.

Enums

Error
PublicKeyFormat

Format for public key parsing.

Functions

recover

Recover public key from a signed message.

sign

Sign a message using the secret key.

verify

Check signature is a valid message signed by public key.